import requests,json

headers = {'host':'zswxy.yinghuaonline.com','connection': 'Keep-Alive','User-Agent':'Mozilla/5.0 (Linux; Android 11; V1981A Build/RP1A.200720.012; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/83.0.4103.106 Mobile Safari/537.36;sino-web.com'}
data={
'courseId':'1011408',
'token':'sid.k1RGqkI4kFAuqgenD2q3XYTCSDhHS2'
}
r=requests.post('https://zswxy.yinghuaonline.com/api/course/chapter.json', data=data, headers=headers)
print(json.loads(r.text))
list_c=[]
for data in json.loads(r.text)['result']['list']:
    for data_n in data['nodeList']:
        dict_c={'id':data_n['id'],'name':data_n['name'],'videotime':data_n['videoDuration']}
        list_c.append(dict_c)
#print(list_c)